package com.zzq.controller;


import com.zzq.domain.search.PhotographerSearchParamet;
import com.zzq.domain.search.ProductSearchParamet;
import com.zzq.result.SmileResult;
import com.zzq.service.ClientProductApponintmentService;
import com.zzq.service.ClientProductService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/client/product")
@RestController
@Api(value = "约拍产品",tags = {"约拍产品"})
public class ClientProductController {
    @Autowired
    ClientProductService clientProductService;
    @Autowired
    ClientProductApponintmentService clientProductApponintmentService;


    @PostMapping("/list")
    @ApiOperation("获取产品集合")
    public SmileResult list(@RequestBody  ProductSearchParamet searchParamet){
      return   clientProductService.getProductInfoList(searchParamet);
    }


    @PostMapping("/photographer/list")
    @ApiOperation("获取摄影师集合")
    public SmileResult photographerList(@RequestBody PhotographerSearchParamet searchParamet){
        return   clientProductApponintmentService.getPhotographerList(searchParamet);
    }

}
